package com.newland.starpos.http;

public enum ResponseEnum {
	
	OK(0, "OK"),
	
	PHONENUMBER_NULL(40014, "手机号码为空"),
	PHONENUMBER_FORMAT_ERROR(40015, "手机号码格式错误"),
	PHONENUMBER_EXIST(40016, "手机号码已经存在"),
	
	SMS_SERVER_ERROR(40020, "短信发送异常");
	
	ResponseEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}
	
	private int code;
	
	private String message;

	public int code() {
		return code;
	}

	public String message() {
		return message;
	}
}
